<#macro masterTemplate title="DefaultTitle" css=[] js=[]>

    <#import "/spring.ftl" as spring />

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>
    <title>${title}</title>

    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta charset="UTF-8">

    <#list css as file>
        <link rel="Stylesheet" type="text/css" href="<@spring.url "${file}"/>" />
    </#list>

    <script type="text/javascript">var ctx = "${rc.getContextPath()}"</script>

    <#list js as file>
        <script type="text/javascript" src="<@spring.url "${file}"/>"></script>
    </#list>
</head>

<body>
<div id="top">
    <div id="topContainer">
        <h1 class="logo">Task Submitter Inc.</h1><span class="title">${title}</span>
        <div id="right-menu">
            <div id="user">
                <i class="icon-user"></i> <strong>John Strong</strong>
            </div>
        </div>
    </div>
</div>

<div id="contentBody">
    <#nested>
</div>
<!-- end contentBody -->

</div>
<div id="footer">
    <strong>Task Submitter Inc. </strong>&bull; All rights reserved
</div>
</body>

</html>

</#macro>
